package cn.wxManage.shop.controller;

import cn.common.common.model.ServerResponse;
import cn.wxManage.shop.service.IFreightTempletService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/shopFreight")
public class FreightTempletController {
    @Autowired
    IFreightTempletService iFreightTempletService;

    @ApiOperation(value="根据当前省份获取运费单价", notes="根据当前省份获取运费单价",produces = "application/json")
    @GetMapping(value = "/getFreightPrice")
    public ServerResponse<?> getFreightPrice(@RequestParam("provinceName") String provinceName){
        return iFreightTempletService.getFreightPrice(provinceName);
    }
}
